<?php

namespace App\Http\Requests\Admin\V1\BulletinBoard;

trait BulletinBoardRule
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function dataRules()
    {
        return [
            'name'       => 'required|string',
            'title'      => 'required|string',
            'content'    => 'required|string',
            'started_at' => 'required|date',
            'ended_at'   => 'required|date',
            'sort_order' => 'required|int',
        ];
    }
}
